Conversation
Signed-off-by: oliver könig <okoenig@nvidia.com>
Signed-off-by: oliver könig <okoenig@nvidia.com>
Signed-off-by: oliver könig <okoenig@nvidia.com>
Signed-off-by: oliver könig <okoenig@nvidia.com>
| **1. Add the internal GitLab as a git remote** (skip if you already have one configured): | ||
|
|
||
| ```bash | ||
| git remote add gitlab git@<gitlab-hostname>:<namespace>/<project>.git |
There was a problem hiding this comment.
Isn't this the same for everyone?
| @@ -0,0 +1,73 @@ | |||
| # trigger_internal_ci.py | |||
|
|
|||
| Pushes the current branch to the internal GitLab remote and triggers a CI | |||
There was a problem hiding this comment.
I would mention that this is only available to NVIDIA internal employees.
| @@ -0,0 +1,73 @@ | |||
| # trigger_internal_ci.py | |||
There was a problem hiding this comment.
| # trigger_internal_ci.py | |
| # Trigger Internal CI |
|
|
||
| Reach out to @mcore-ci in case you don't have access to the settings page. | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
Maybe mention this should be added to ~/.bashrc?
|
/claude review |
2 similar comments
|
/claude review |
|
/claude review |
|
|
||
| To check existing remotes: `git remote -v` |
There was a problem hiding this comment.
Missing prerequisite: users need to install python-gitlab before running the script. Without it they'll get ModuleNotFoundError: No module named 'gitlab'. Please add an install step:
| To check existing remotes: `git remote -v` | |
| **3. Install the required Python dependency:** | |
| ```bash | |
| pip install python-gitlab |
| gitlab_hostname = get_gitlab_hostname(remote_url) | ||
|
|
||
| target_branch = f"{GITLAB_BRANCH_PREFIX}/{branch}" | ||
|
|
||
| git_push(args.gitlab_origin, target_branch, dry_run=args.dry_run) | ||
|
|
||
| pipeline_vars = { |
There was a problem hiding this comment.
FUNCTIONAL_TEST is never explicitly set in pipeline_vars, so the tool silently relies on the GitLab CI YAML default ("yes"). If that default ever changes, functional tests will stop running without any warning. Consider making it explicit:
| gitlab_hostname = get_gitlab_hostname(remote_url) | |
| target_branch = f"{GITLAB_BRANCH_PREFIX}/{branch}" | |
| git_push(args.gitlab_origin, target_branch, dry_run=args.dry_run) | |
| pipeline_vars = { | |
| pipeline_vars = { | |
| **PIPELINE_VARIABLES_FIXED, | |
| "FUNCTIONAL_TEST": "yes", | |
| "FUNCTIONAL_TEST_SCOPE": args.functional_test_scope, | |
| "FUNCTIONAL_TEST_REPEAT": str(args.functional_test_repeat), | |
| "FUNCTIONAL_TEST_CASES": args.functional_test_cases, | |
| } |
Code ReviewOverall the tool is clean and well-structured. A few issues to address: Bugs / logic gaps
Missing documentation
Minor
|
What does this PR do ?
Adds a CLI tool that makes it easy to test a public GH against the internal CI. For more details, please check out the README.
Contribution process
flowchart LR A[Pre-checks] --> B[PR Tests] subgraph Code Review/Approval C1[Expert Review] --> C2[Final Review] end B --> C1 C2 --> D[Merge]Pre-checks
Core 0.8)Code review
The following process is enforced via the CODEOWNERS file for changes into
megatron/core. For changes outside ofmegatron/core, it is up to the PR author whether or not to tag the Final Reviewer team.For MRs into `main` branch
Feel free to message or comment the @mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!
(Step 1): Add PR label
Expert Review(Step 2): Collect the expert reviewers reviews
Expert Reviewlabel when your PR is ready for review.Final Review might get declined if these requirements are not fulfilled.
(Step 3): Final Review
Final Reviewlabel(Optional Step 4): Cherry-pick into release branch
If this PR also needs to be merged into
core_r*release branches, after this PR has been merged, selectCherry-pickto open a new PR into the release branch.For MRs into `dev` branch
The proposed review process for `dev` branch is under active discussion.MRs are mergable after one approval by either
eharper@nvidia.comorzijiey@nvidia.com.Merging your PR
Any member of core-adlr and
core-nemowill be able to merge your PR.